package com.yang.app.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.yang.app.dao.IUserDao;
import com.yang.app.entity.User;
import com.yang.app.service.IUserService;

public class UserServiceImpl implements IUserService {
	
	@Resource
	private IUserDao userDao;
	@Override
	public void addUser(User user) {
		userDao.addUser(user);
	}

	@Override
	public List<User> getAllUser() {
		
		return userDao.getAllUser();
	}

	@Override
	public void delete(Integer id) {
		userDao.delete(id);
		
	}

	@Override
	public String update(User user) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public User getUserById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public User check(User user) {
		// TODO Auto-generated method stub
		return userDao.getUserById(user);
	}

}
